package com.ruoyi.web.shopping.dto;

import com.ruoyi.web.shopping.entity.Products;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("商品DTO")
public class ProductsDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品id")
    private String id;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品描述")
    private String description;

    @ApiModelProperty("商品分类")
    private String productClass;

    @ApiModelProperty("商品入库日期")
    private LocalDateTime inboundDate;

    @ApiModelProperty("商品数量")
    private long quantity;

    @ApiModelProperty("商品生产日期")
    private LocalDateTime productionDate;

    @ApiModelProperty("商品现在价格")
    private double price;

    @ApiModelProperty("商品历史价格")
    private double historicalPrice;

    @ApiModelProperty("商品折扣率")
    private double discount;

    @ApiModelProperty("商品折扣名称")
    private String discountName;

}
